using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace Test.Support {
	class PackingRegex {

		static void MainX() {



			//Console.WriteLine(Regex.IsMatch("038231030081","(^(2(3|4)|0[1|2])[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$|^[0-9]{{12}}1434$)"));
Console.WriteLine(Regex.IsMatch("0081710227871434","(^(2(3|4)|0[1|2])[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$|^[0-9]{12}1434$)"));
Console.WriteLine(Regex.IsMatch("0081710227871434","(^2(3|4)[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$|^[0-9]{16}$)"));
		}
	}
}
